from django.db import models
from tower.models import *
from supplier.models import *

#资产
class Asset(models.Model):
    
    asset_name = models.CharField(max_length = 200,unique = True)
    
#中转站
class Interchange(models.Model):

    room = models.ForeignKey(Room,on_delete = models.CASCADE)
    asset = models.ForeignKey(Asset,on_delete = models.CASCADE)
    vender = models.ForeignKey(Vender,on_delete = models.CASCADE)
    asset_num = models.IntegerField(default = 0)
    
    


